package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.PersonalizedrequestsMapper;
import com.scheduling.system.domain.Personalizedrequests;
import com.scheduling.system.service.IPersonalizedrequestsService;

/**
 * 个性化诉求Service业务层处理
 * 
 * @author mj
 * @date 2025-05-07
 */
@Service
public class PersonalizedrequestsServiceImpl implements IPersonalizedrequestsService 
{
    @Autowired
    private PersonalizedrequestsMapper personalizedrequestsMapper;

    /**
     * 查询个性化诉求
     * 
     * @param id 个性化诉求主键
     * @return 个性化诉求
     */
    @Override
    public Personalizedrequests selectPersonalizedrequestsById(Long id)
    {
        return personalizedrequestsMapper.selectPersonalizedrequestsById(id);
    }

    /**
     * 查询个性化诉求列表
     * 
     * @param personalizedrequests 个性化诉求
     * @return 个性化诉求
     */
    @Override
    public List<Personalizedrequests> selectPersonalizedrequestsList(Personalizedrequests personalizedrequests)
    {
        return personalizedrequestsMapper.selectPersonalizedrequestsList(personalizedrequests);
    }

    /**
     * 新增个性化诉求
     * 
     * @param personalizedrequests 个性化诉求
     * @return 结果
     */
    @Override
    public int insertPersonalizedrequests(Personalizedrequests personalizedrequests)
    {
        return personalizedrequestsMapper.insertPersonalizedrequests(personalizedrequests);
    }

    /**
     * 修改个性化诉求
     * 
     * @param personalizedrequests 个性化诉求
     * @return 结果
     */
    @Override
    public int updatePersonalizedrequests(Personalizedrequests personalizedrequests)
    {
        return personalizedrequestsMapper.updatePersonalizedrequests(personalizedrequests);
    }

    /**
     * 批量删除个性化诉求
     * 
     * @param ids 需要删除的个性化诉求主键
     * @return 结果
     */
    @Override
    public int deletePersonalizedrequestsByIds(Long[] ids)
    {
        return personalizedrequestsMapper.deletePersonalizedrequestsByIds(ids);
    }

    /**
     * 删除个性化诉求信息
     * 
     * @param id 个性化诉求主键
     * @return 结果
     */
    @Override
    public int deletePersonalizedrequestsById(Long id)
    {
        return personalizedrequestsMapper.deletePersonalizedrequestsById(id);
    }
}
